{extend name="base" /}
{block name="style"}
<script src="__STATIC__/doclist/js/ipage/ipage.js"></script>
<script src="__STATIC__/doclist/js/list/methods.js"></script>
<script src="__STATIC__/doclist/js/list/main.js"></script>
<link rel="stylesheet" href="__STATIC__/doclist/css/list.css">
{/block}
{block name="body"}
<div class="filter_box">
    <div class="filter">
        <div class="item">
            <div class="tit">版权:</div>
            <div class="list">
                {foreach name=":config('type')" item="v1"}
                <a href='/index/pic_list/pic_list/sid/{$sid}/sort/{$sort}/type/{$v1.value}{neq name="id" value=""}/id/{$id}{/neq}{neq name="keyword" value=""}/keyword/{$keyword}{/neq}' class="{eq name='$v1.value' value='$type'}active{/eq}">{$v1.name}</a>
                {/foreach}
            </div>
        </div>
        {if condition="!empty($category)"}
        <div class="item">
            <div class="tit">分类:</div>
            <div class="list">
                {foreach name="category" item="v"}
                <a href="{:url('index/pic_list/pic_list',['sid'=>$v.id,'type'=>$type ,'id' => $id])}" class="{eq name='$v.id' value='$sid'}active{/eq}">{$v.name}</a>
                {/foreach}
            </div>
        </div>
        {/if}
    </div>
</div>
<div class="filter_box">
    <div class="filter">
        <div class="item">
                <div class="tit">排序:</div>
                <div class="list">
                    {foreach name=":config('sort')" item="v2"}
                    <a href='/index/pic_list/pic_list/sid/{$sid}/type/{$type}/sort/{$v2.value}{neq name="keyword" value=""}/keyword/{$keyword}{/neq}' class="{eq name='$v2.value' value='$sort'}active{/eq}">{$v2.name}</a>
                    {/foreach}
                </div>
        </div>
    </div>
</div>

<!-- <div class="toppages">
        <div class="iPages top_pages"></div>
        <div class="gotopage">
            <input type="number" class="pagenum">
            <a class="topagebtn">跳转</a> 共100页
        </div>
    </div> -->
<div class="toppages global_pages">
    {$img_list->render();}
</div>
<div class="pic_list">
    <div class="list">
        {foreach name="img_list" item="val"}
        <div class="item" type="pic">
            <div class="img">
                <img src="{$val.thumb}" alt="">
                <div class="tag">
                    {foreach name=":config('type')" item="v2"} {eq name="$val.type" value="$v2.value"} {$v2.name} {/eq} {/foreach}
                </div>
                <div class="hover">
                    <div class="like {if condition='isset($Think.session.index_user.collection[2][$val.id])'}active{/if}" data-id='{$val.id}' data-type = '2'>收藏</div>
                    <a target="_blank" href="/index/download/download/id/{$val.id}/type/image/sid/{$sid}" class="download">
                        <i class="mdui-icon material-icons">vertical_align_bottom</i>点击下载</a>
                </div>
            </div>
            <p>{$val.title}</p>
        </div>
        {/foreach}
    </div>
</div>

<div class="loginmorm">
    <button>加载更多</button>
</div>
<div class="toppages global_pages">
    {$img_list->render();}
</div>
<!-- <div class="bottompages">
        <div class="iPages top_pages"></div>
        <div class="gotopage">
            <input type="number" class="pagenum">
            <a class="topagebtn">跳转</a> 共100页
        </div>
    </div> -->
{/block}